package com.ruoyi.map.domain;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 保障房建筑单元信息数据对象 unit_info
 *
 * @author dihang
 * @date 2023-07-26
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UnitInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 保障房建筑单元主键ID */
    @TableId(type = IdType.AUTO)
    private Long id;
    /** 对应保障房建筑楼栋id */
    @Excel(name = "对应保障房建筑楼栋id")
    private Long buildingId;
    /** 保障房建筑单元名称 */
    @Excel(name = "保障房建筑单元名称")
    private String name;
    /** 单层户数 */
    @Excel(name = "单层户数")
    private Long layerNum;
    /** 所属保障房建筑楼栋名称 */
    @Excel(name = "所属保障房建筑楼栋名称")
    private String affiliationBuilding;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("buildingId", getBuildingId())
            .append("name", getName())
            .append("layerNum", getLayerNum())
            .append("affiliationBuilding", getAffiliationBuilding())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("deleted", getDeleted())
        .toString();
    }
}
